using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Problem_3___Sand_glass
{
    class Program
    {
        static void Main()
        {
            int n = int.Parse(Console.ReadLine());
            int a = new int();
            int b = new int();
 
            for (int i = 0; i < n / 2; i++)
            {
                for (int j = n-i; j < n; j++)
                {
                    Console.Write(".");
                }
 
                for (int j = 2 * i; j < n; j++)
                {
                    Console.Write("*");               
                }
 
                for (int j = n-i; j < n; j++)
                {
                    Console.Write(".");
                }
                Console.WriteLine();
            }
 
            for (int i = 0; i <= n / 2; i++)
            {
                for (int j = i; j < n/2; j++)
                {
                    Console.Write(".");
                }
 
                for (int j = n - 2 * i; j <= n; j++)
                {
                    Console.Write("*");
                }
 
                for (int j = i; j < n/2; j++)
                {
                    Console.Write(".");
                }
                Console.WriteLine();
            }
 
        }
    }
}